<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">
    <ui:composition>
        <p:dataTable var="c" value="#{categoriaController.dataModel}" rendered="true" id="lista" dynamic="true" paginator="true" rows="2" paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}" paginatorPosition="bottom"  rowsPerPageTemplate="5,10,15">
            <p:column>
                <f:facet name="header">
                    <h:outputText value="descricao" />
                </f:facet>
                <h:outputText value="#{c.descricao}" />
            </p:column>
            <p:column>
                <f:facet name="header">
                    <h:outputText value="Inativo"/>
                </f:facet>
                <h:selectBooleanCheckbox value="#{c.desabilitado}" id="itDesab" disabled="true">
                </h:selectBooleanCheckbox>
            </p:column>

            <p:column>
                <f:facet name="header">Editar</f:facet>
                <!--                <h:commandButton action="{cidadeManager.edit}" image="/resources/images/edit22.png" />-->
                <p:commandButton action="#{categoriaController.selectItem()}" update="form"/>
            </p:column>
        </p:dataTable>

    </ui:composition>

</html>

